import requests
from pyquery import PyQuery as pq

URL = "http://dizhi2.top"


def getAddress():
    response = requests.get(URL)
    response.encoding = "utf-8"
    html = pq(response.text)
    ass = html("div[class='info']")("a")
    for item in ass.items():
        print(item.text(), item.attr("href"))


if __name__ == '__main__':
    getAddress()
